/**
 * Created by Administrator on 2017/8/13 0013.
 */
$(function () {

    $.ajax({
        type:"POST",
        url:"/user/userinfo",
        dataType:"json",
        contentType:"application/json",
        data:{},
        success:function(data){
            //alert(document.getElementById("user").innerHTML);


            $("#user").html(data.realName);
            $("#user1").html(data.realName);
            $("#user2").html(data.realName);
            $(".img-circle").attr("src",data.headImage);
            $(".user-image").attr("src",data.headImage);

        }
    });
});